package top.dark.search.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import top.dark.common.utils.R;
import top.dark.search.service.SkuInfoEsService;
import top.dark.search.vo.SkuInfoUpEsVo;

import java.io.IOException;
import java.util.List;

/**
 * Author: Darkn
 * description:
 * Create Time: 2021/3/3 15:12
 */
@RequestMapping("search/skuInfo")
@RestController
public class SkuInfoEsController {

    @Autowired
    private SkuInfoEsService skuInfoEsService;

    /**
     * sku商品上架
     */
    @RequestMapping("/spuInfoUp")
    R spuInfoUp(@RequestBody List<SkuInfoUpEsVo> skuInfoUpEsVos) throws IOException {
        skuInfoEsService.spuInfoUp(skuInfoUpEsVos);
        return R.ok();
    }

}
